package com.example.dormitory_system.service;

import com.example.dormitory_system.domain.dto.student.MaintenanceAddDTO;
import com.example.dormitory_system.domain.enetiy.Maintenance;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.dormitory_system.domain.vo.student.MaintainVO;

import java.util.List;

/**
* @author keenan
* @description 针对表【tb_maintenance(维修申请表)】的数据库操作Service
* @createDate 2025-03-26 15:30:48
*/
public interface MaintenanceService extends IService<Maintenance> {

    List<MaintainVO> listMaintain(Long studentId,Integer pageNum,Integer pageSize);

    int addMaintain(MaintenanceAddDTO maintenanceAddDTO);

    List<MaintainVO> sysListMaintain(Integer status,Integer pageNum,Integer pageSize);

    int updateMaintain(Long maintainId, Integer status);
}